package cn.stylefeng.guns.sys.modular.system.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

/**
 * @author YuJiBiao
 * @version: 1.0
 * @Date 2020/7/8 16:34
 **/
@TableName("kms")
public class Kms implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "kms_id", type = IdType.ID_WORKER)
    private Long kmsId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 块id
     */
    @TableField(value = "block_id")
    private String blockId;

    /**
     * 索引
     */
    @TableField(value = "index_")
    private Integer index;

    /**
     * 密钥
     */
    @TableField(value = "key_")
    private String key;

    /**
     * 目标站点id
     */
    @TableField(value = "dest_id")
    private String destId;

    /**
     * 源id
     */
    @TableField(value = "src_id")
    private String srcId;



    /**
     * 用户id
     */
    @TableField(value = "app_id")
    private Long appId;


    /**
     * 目标用户
     */
    @TableField(value = "src_user_id")
    private Long srcUserId;


    /**
     * 源App
     */
    @TableField(value = "src_app_id")
    private Long srcAppId;


    /**
     * 目标App
     */
    @TableField(value = "dest_app_id")
    private Long destAppId;

    /**
     * 文件名称
     */
    @TableField(value = "file_name")
    private String fileName;

    /**
     * 过期时间
     */
    @TableField(value = "end_time",fill = FieldFill.INSERT)
    private Date endTime;

    /**
     * 过期时间
     */
    @TableField(value = "status")
    private Integer status;

    public Long getKmsId() {
        return kmsId;
    }

    public void setKmsId(Long kmsId) {
        this.kmsId = kmsId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getBlockId() {
        return blockId;
    }

    public void setBlockId(String blockId) {
        this.blockId = blockId;
    }

    public Integer getIndex() {
        return index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getDestId() {
        return destId;
    }

    public void setDestId(String destId) {
        this.destId = destId;
    }

    public String getSrcId() {
        return srcId;
    }

    public void setSrcId(String srcId) {
        this.srcId = srcId;
    }

    public Long getAppId() {
        return appId;
    }

    public void setAppId(Long appId) {
        this.appId = appId;
    }

    public Long getSrcUserId() {
        return srcUserId;
    }

    public void setSrcUserId(Long srcUserId) {
        this.srcUserId = srcUserId;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }



    public Long getSrcAppId() {
        return srcAppId;
    }

    public void setSrcAppId(Long srcAppId) {
        this.srcAppId = srcAppId;
    }

    public Long getDestAppId() {
        return destAppId;
    }

    public void setDestAppId(Long destAppId) {
        this.destAppId = destAppId;
    }
}
